import { defineStore } from 'pinia'

export const useIsCollapseStore = defineStore('isCollapse', () => {
  // ref 就是 state状态
  // computed 就是 getters
  // methods 就是 actions

  const isCollapse = ref(false)

  const toggleCollapse = () => {
    isCollapse.value = !isCollapse.value
  }

  return {
    isCollapse,
    toggleCollapse,
  }
})
